<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>词多多代理商平台</title>
    <include file="Index:header"/>
    <script type="text/javascript">
        $(function(){
            $(".help-side dl dd:eq(0)").addClass('cur');
        })
        $(function(){
            $("#top #topcon .nav li:eq(2)").addClass('cur');
        })
    </script>
    <script src="__PUBLIC__/js/main.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>
    <include file="Index:top"/>
    <div id="main">
        <include file="Site:left"/>
        <div id="main_right" class="container">
            <div class="title">站点关键词</div>
            <div id="infotab" class="container mt10">
                <ul class="tb cl">
                    <li class="a">
                        <a href="javascript:void(0);">站点关键词</a>
                    </li>
                </ul>

                <table class="table ml10 mr10" cellpadding=4>
                    <tr style="border-bottom: 2px solid #eee;">
                        <th width="20%">关键词</th>
                        <th width="15%">价格(元)</th>
                        <th width="15%">累计消费(元)</th>
                        <th width="15%">搜索引擎</th>
                        <th width="10%">状态</th>
                        <th width="10%">操作</th>
                    </tr>

                    <tbody id="tbody">
                        <volist name="list" id="vo">
                            <tr>
                                <td>{$vo['Keyword']}</td>
                                <td>{$vo['Price']}</td>
                                <if condition="$vo['money'] neq null">
                                <td>{$vo['money']}</td>
                                <else/>
                                <td>暂无消费</td>
                                </if>
                                <td>{$vo['yinqing']}</td>
                                <if condition="$vo['Status'] eq ON">
                                <td>开启</td>
                                <else/>
                                <td>暂停</td>
                                </if>
                                <td>
                                    <div class="menubox">
                                        <div class="mainmenu">
                                            <div class="category">
                                                <span class="tit">操作选项</span>
                                                <ul class="submenu">
                                                    <li>
                                                        <a href="javascript:void(0);" onclick="edit({$vo['Id']});">
                                                            <span class='ico ico_application_edit'></span>
                                                            修 改
                                                        </a>
                                                    </li>
                                                    <if condition="$vo['Status'] eq ON">
                                                    <li>
                                                        <a href="javascript:void(0)" onclick="stop('keyword_stop',{$vo['Id']});">
                                                            <span class="ico ico_control_stop_blue"></span>
                                                            暂 停
                                                        </a>
                                                    </li>
                                                    <else/>
                                                    <li>
                                                        <a href="javascript:void(0)" onclick="start('keyword_start',{$vo['Id']});">
                                                            <span class="ico ico_control_stop_blue"></span>
                                                            开 启
                                                        </a>
                                                    </li>
                                                    </if>                                                    
                                                    <li>
                                                        <a href="javascript:void(0);" onclick="del('keyword_del',{$vo['Id']});">
                                                            <span class='ico ico_cross'></span>
                                                            删 除
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </volist>
                    </tbody>
                </table>
                <div class="mt10">
                    <div class="page_list">
                        <div class="p_l">{$pageshow}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="Index:footer"/>
    <script>
        function edit(id) {
            art.dialog.open('__URL__/site_keyword_edit/id/'+id, {
                title: '修改关键词',
                lock: 'true',
                close:function(){
                    parent.location.reload();
                }
            });
        }

        function stop(action,id) {

            art.dialog({
                content: "您确定要暂停此关键词吗?",
                icon: 'question',
                lock: "true",
                ok: function() {
                    window.location.href = "__URL__/"+action+"/id/"+id;
                },
                cancelVal: '取消',
                cancel: true
            });            
        }

        function start(action,id) {

            art.dialog({
                content: "您确定要开启此关键词吗?",
                icon: 'question',
                lock: "true",
                ok: function() {
                    window.location.href = "__URL__/"+action+"/id/"+id;
                },
                cancelVal: '取消',
                cancel: true
            });            
        }

        function del(action,id) {

            art.dialog({
                content: "您确定要删除此关键词吗?",
                icon: 'question',
                lock: "true",
                ok: function() {
                    window.location.href = "__URL__/"+action+"/id/"+id;
                },
                cancelVal: '取消',
                cancel: true
            });            
        }        
    </script>
</body>

</html>